import { ref, withModifiers, defineComponent } from 'vue'

const App = defineComponent({
  name: 'Counter',
  setup() {
    const count = ref(0)

    const inc = () => {
      count.value++
    }

    return () => (
      <div onClick={withModifiers(inc, ['self'])}>{count.value}</div>
    )
  },
})

export default App
